#include <stdio.h>
int main()
{
    int n = 0;
    int i = 0;
    int he = 1;
    scanf("%d",&n);
    for(i = 1;i <= n;i++)
    {
        he = i*he;
    }
    printf("%d",he);
    return 0;
}
